﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Net;
using System.IO;

namespace CineTest
{
    [TestClass]
    public class MensajeTest
    {
        [TestMethod]
        public void ObtenerSaludoTest()
        {
            HttpWebRequest req = WebRequest.Create("http://localhost:1279/Mensaje.svc/ObtenerSaludo") as HttpWebRequest;
            HttpWebResponse res = req.GetResponse() as HttpWebResponse;
            StreamReader reader = new StreamReader(res.GetResponseStream());
            String saludo = reader.ReadToEnd();
            Assert.AreEqual(saludo,"\"Buenas noches\"");

        }
    }
}
